package com.staginfo.segs.function.registerOrLogin.login.bean;

/**
 * 
 * @description用户验证状态实体
 * @date 2014-12-8
 * @author allen.caihuajian
 */
public class AuthenticateStatus {
	private boolean isFirstLogin; // 是否第一次登录
	private User user; // 用户实体
	/**
	 * 0.用户终端都登录成功 1.用户登录失败 2.用户成功/终端失败 3.用户成功/终端失效
	 * 4.终端或用户已有其他对象绑定 5.终端与用户未绑定
	 */
	private int status;
	private String terminalKey;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getTerminalKey() {
		return terminalKey;
	}

	public void setTerminalKey(String terminalKey) {
		this.terminalKey = terminalKey;
	}

	public boolean isFirstLogin() {
		return isFirstLogin;
	}

	public void setFirstLogin(boolean isFirstLogin) {
		this.isFirstLogin = isFirstLogin;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public String toString() {
		return "AuthenticateStatus [isFirstLogin=" + isFirstLogin + ", user="
				+ user + ", status=" + status + ", terminalKey=" + terminalKey
				+ "]";
	}
}
